//
//  KKNetworking.h
//  XiaoShi
//
//  Created by leo on 2017/6/15.
//  Copyright © 2017年 liaozhenming. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "KKNetworkRequest.h"

#pragma mark - KKNetworking methods
typedef void(^KKNetworkingResponseBlockHandle)(id response, NSString *error);
typedef void(^KKNetworkingProgressBlockHandle)(float progress);
@interface KKNetworking : NSObject

+ (void)sendRequest:(KKNetworkRequest*)networkRequest responseCallBack:(KKNetworkingResponseBlockHandle)callBack;
+ (void)sendRequest:(KKNetworkRequest*)networkRequest showStatus:(BOOL)showStatus responseCallBack:(KKNetworkingResponseBlockHandle)callBack;

+ (void)uploadImage:(UIImage*)image parmeters:(NSDictionary*)parmeters progress:(KKNetworkingProgressBlockHandle)progress responseCallBack:(KKNetworkingResponseBlockHandle)callBack;

+ (void)uploadImage:(UIImage*)image parmeters:(NSDictionary*)parmeters responseCallBack:(KKNetworkingResponseBlockHandle)callBack;

@end
